package adapter_pattern;

import adapter_pattern.boat.FishingBoat;

// FishingBoatAdapter 类实现了 RowingBoat 接口
public class FishingBoatAdapter implements RowingBoat{
    FishingBoat boat = new FishingBoat();

    // 重写 row 方法, 使得 FishingBoat 能够通过跨适配器方式来划船
    @Override
    public void row() {
        boat.sail();
    }
}

